const images = [...document.images].map(img => ({
    src: img.src,
    width: img.naturalWidth,
    height: img.naturalHeight
}));

chrome.runtime.sendMessage({images: images});
